package model

type UserBill struct {
	Id          int     		`gorm:"column:id"`          //用户账单id
	Uid         int     		`gorm:"column:uid"`         //用户id
	LinkId     	string  		`gorm:"column:link_id"`     //关联id
	Pm         	int  			`gorm:"column:pm"`          //0 = 支出 1 = 获得
	Title    	string  		`gorm:"column:real_name"`   //账单标题
	Category    string     		`gorm:"column:category"`    //明细种类
	Type      	string  		`gorm:"column:type"`      	//明细类型
	Number      float64  		`gorm:"column:number"`      //明细数字
	Balance     float64     	`gorm:"column:balance"`     //剩余
	Mark   		string     		`gorm:"column:mark"`   		//备注
	AddTime     int  			`gorm:"column:add_time"`    //添加时间
	Status    	int  			`gorm:"column:status"`     	//0 = 带确定 1 = 有效 -1 = 无效
}

func (UserBill) TableName() string {
	return "eb_user_bill"
}